package com.zqxq.lottery.mapper.user;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.zqxq.lottery.entity.po.user.UserActivityPO;
import com.zqxq.lottery.entity.po.user.UserInviteRecordPO;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

import java.math.BigDecimal;
import java.util.Date;
import java.util.Map;

/**
 * 说    明：
 * 创 建 人：	一刀·胡
 * 创建时间：	2018/5/7 10:12
 * 修 改 人：
 * 修改日期：
 **/
@Component(value = "userInviteMapper")
public interface UserInviteMapper extends BaseMapper<UserInviteRecordPO> {
    UserInviteRecordPO selectInvite(UserInviteRecordPO inviteRecordPO);

    Integer updateByInInvitorId(@Param("userId") Long userId,@Param("orderId") Long orderId);

    Map<String,Object> queryInviteData(@Param("userId") Long userId);

    Map<String,Object> queryAgentData(@Param("userId") Long userId,@Param("create_time") String create_time,@Param("commissions_time") String commissions_time);

    Map<String,Object> queryAgentRegNum(@Param("userId") Long userId,@Param("create_time") String create_time);
}
